package com.ruoyi.depot.service;

import java.util.List;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.depot.domain.ProcuredStorage;
import com.ruoyi.depot.domain.vo.DetailedInventoryAgeVO;

/**
 * 采购入库单Service接口
 * 
 * @author ruoyi
 * @date 2023-12-13
 */
public interface IProcuredStorageService 
{
    /**
     * 查询采购入库单
     * 
     * @param storageId 采购入库单主键
     * @return 采购入库单
     */
    public ProcuredStorage selectProcuredStorageByStorageId(Long storageId);

    /**
     * 查询采购入库单列表
     * 
     * @param procuredStorage 采购入库单
     * @return 采购入库单集合
     */
    public List<ProcuredStorage> selectProcuredStorageList(ProcuredStorage procuredStorage);

//    /**
//     * 新增采购入库单
//     *
//     * @param procuredStorage 采购入库单
//     * @return 结果
//     */
//    public int insertProcuredStorage(ProcuredStorage procuredStorage);

    /**
     * 修改采购入库单
     * 
     * @param procuredStorage 采购入库单
     * @return 结果
     */
    public int updateProcuredStorage(ProcuredStorage procuredStorage);

    /**
     * 批量删除采购入库单
     * 
     * @param storageIds 需要删除的采购入库单主键集合
     * @return 结果
     */
    public int deleteProcuredStorageByStorageIds(Long[] storageIds);

    /**
     * 删除采购入库单信息
     * 
     * @param storageId 采购入库单主键
     * @return 结果
     */
    public int deleteProcuredStorageByStorageId(Long storageId);

    /**
     * 查询库龄详细
     * @param vo
     * @return
     */
    List<DetailedInventoryAgeVO> getDetailedInventoryAge(DetailedInventoryAgeVO vo);
}
